<?php
declare (strict_types=1);

namespace app\model;

use think\Model;

/**
 * @mixin \think\Model
 */
class GrainSituation extends BaseModel
{
    protected $name = 'grain_situation';

    public function setGrainJsonAttr($value): bool|string
    {
        return json_encode($value, 320);
    }

    public function getGrainJsonAttr($value)
    {
        return json_decode($value);
    }
}
